#!/usr/bin/python
#Filename : inherit.py

class SchoolMember :
	'''init school member'''
	def __init__(self, name, age):
		self.name = name
		self.age = age
		print 'Initialized SchoolMember :%s'%self.name
	def tell(self):
		'''Tell my detail.'''
		print 'Name:"%s"  Age:"%d"' %(self.name, self.age)

class Teacher(SchoolMember):
	'''init teacher member'''
	def __init__(self, name , age, pay):
		SchoolMember.__init__(self, name, age)
		self.pay = pay
		print 'Initialized Teacher : %s' %self.name
	'''Tell my detail.'''
	def tell(self):
		SchoolMember.tell(self)
		print 'pay: %d'%self.pay

class Student(SchoolMember):
	
	'''init teacher member'''
	def __init__(self, name, age, marks):
		SchoolMember.__init__(self, name ,age)
		self.marks = marks
		print "Initialized Student :%s" %self.name


	'''Tell my detail.'''
	def tell(self):
		SchoolMember.tell(self)
		print 'marks: %d'%self.marks


t = Teacher('james',35, 30000)
s = Student('issta',26, 6000)

print #prints a blank line

members = [t, s]

for member in members:
	member.tell()



